{extend name="admin@main"}

{block name="content"}
<div class="layui-form-item text-left">
    <button class="layui-btn layui-btn-danger" type='button'  onclick="window.history.back()">返 回</button>
</div>
<form class="layui-card layui-form">
    <div class="layui-card-body">
        <fieldset class="layui-elem-field layui-field-title" >
            <legend>信息</legend>
        </fieldset>

        <div class="layui-form-item">
            <label class="layui-form-label">微信昵称<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.nickname|default=''}">
            </div>
            <label class="layui-form-label">真实姓名<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.realname|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">头像</label>
            <div class="layui-input-inline">
                <img data-tips-image src="{$user.avatar}" class="thumb-image" alt="">
            </div>
            <label class="layui-form-label">手机号<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.phone|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">学校</label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.school.name|default=''}">
            </div>
            <label class="layui-form-label">年级<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.schoolgrade.name|default=''}">
            </div>
            <label class="layui-form-label">班级<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.schoolclass.name|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">班级学生数</label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.student_count|default='0'}">
            </div>
            <label class="layui-form-label">班级课程数<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.course_count|default='0'}">
            </div>
            <label class="layui-form-label">学生缺勤率<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user.attendance_rate|default='0'}%">
            </div>
        </div>

    </div>

    <div class="layui-form-item text-center">
        <button class="layui-btn layui-btn-danger" type='button'  onclick="window.history.back()">返 回</button>
    </div>
</form>
{/block}

{block name='style'}
<style>
    .layui-form-label{
        width: 10%;
    }
</style>
{/block}